﻿using System;

namespace TextEditor
{
    

    public class A_ShowParagraphFlag : A_Action
    {
        public override string ActionName()
        {
            return "showparagraphflag";
        }

        public override int CheckState()
        {
            return (base.myOwnerDocument.Info.ShowParagraphFlag ? 1 : 0);
        }

        public override bool Execute()
        {
            base.myOwnerDocument.Info.ShowParagraphFlag = !base.myOwnerDocument.Info.ShowParagraphFlag;
            base.myOwnerDocument.RefreshLine(); 
            return true;
        }
    }
}

